<html>

<head>
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/base.css">
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/form.css">
</head>

<body>
	{% include "sysmodel/header.html" %}

	
	<div class="breadcrumbs">
		<a href="/sysmodel/home/">Home</a> &gt; 
		<a href="/sysmodel/user/home/">List of Users</a> &gt;
		Add User
	</div>
	
	<form enctype="multipart/form-data" action="/sysmodel/user/add/" method="post">
		<div style="display:none">{% csrf_token %}</div>
		
		<span class="form-container"> 
			
			<span class="form-heading">
				<h4>Add User</h4>
			</span>
			{% if rm %} <div class="errornote">{{ rm }}</div> {% endif %}
			<div class="form">

					<fieldset>
						<legend>User</legend>
						<table>
							<tr>
								<td>
									<label>Username:</label>
								</td>
								<td>
									<input type="text" name="USERNAME"/>
								</td>
							</tr>
							<tr>
								<td>
									<label>Password:</label>
								</td>
								<td>
									<input type="password" name="PASSWORD1"/>
								</td>
							</tr>
							<tr>
								<td>
									<label>Password (again)</label>
								</td>
								<td>
									<input type="password" name="PASSWORD2"/>
								</td>
							</tr>
							<tr>
								<td>
									<label>Password (again)</label>
								</td>
								<td>
									<select name="GROUP_ID">
										<option value="-1">Select User Group</option>
										{% for ug in user_groups %}
											<option value="{{ug.id}}">{{ug.name}}</option>
										{% endfor %}
									</select>
								</td>
							</tr>					


						</table>
					</fieldset>
				
			</div>
			
			<span class="form-submit">
				<input class="submit" type="submit" value="Save"/>
				<input class="submit" type="reset" value="Reset"/>
			</span>
			
		</span>
	</form>
</body>

</html>
